Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

D2R Enigma Armor: A Synthesis of Power and Strategy

D2R Enigma Armor: A Synthesis of Power and Strategy

智能合約(三) - IDE 開發環境

智能合約(三) - IDE 開發環境

Linux小技巧暨問題集

Linux小技巧暨問題集


Comments